package com.snlab;

public class Rule {
    private Device device;
    private long dstIp;
    private int prefix;
    private Port port;
    private int hit;

    public Rule(long dstIp, int prefix, Port port) {
        this.dstIp = dstIp;
        this.prefix = prefix;
        this.port = port;
        this.device = port.getDevice();
    }

    public long getDstIp() {
        return dstIp;
    }

    public int getPrefix() {
        return prefix;
    }

    public Port getPort() {
        return port;
    }

    public int getHit() {
        return hit;
    }

    public void setHit(int hit) {
        this.hit = hit;
    }
}
